package com.mmm.Services;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.stereotype.Component;
import com.mmm.Services.UserServices;

/**
 * Created by andy on 2016/11/10.
 */
@Component
public class UserClientHystrix implements UserServices {
    //断路由  ribbon和feign的断路器实际使用效果不太一样，服务提供者下线的时候，ribbon调用可以瞬间返回断路结果，而feign会有个超时等待时间
    @Override
    public Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b) {
        return -9999;
    }
}